import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//全局样式清除
import "./assets/css/reset.css"
//自适应
import 'lib-flexible/flexible.js'
//导入vant组件
import Vant, {
    Lazyload,
    Notify,
    Toast,
    Uploader,
    Popup
} from 'vant';
import 'vant/lib/index.css';
//注册全局组件
import Header from './components/Header.vue'

// 引入axios请求
import {
    get,
    post,
    uploadFile
} from './request/http.js'
//
import touch from 'vue-directive-touch';
Vue.use(touch);
Vue.prototype.$get = get
Vue.prototype.$post = post
Vue.prototype.$uploadFile = uploadFile

// 全局注册
Vue.use(Vant);
Vue.use(Lazyload, Notify, Toast, Uploader, Popup);
Vue.config.productionTip = false
Vue.component('Header', Header);

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')